package com.lvmama.java.rhino.spark.entity;

import java.io.Serializable;

/**
 * 设备信息日志
 * Created by lvzimin on 16/1/11.
 */
public class DeviceInfoLog implements Serializable {

	private static final long serialVersionUID = -780486188510401182L;

	/**
     * 首要渠道
     */
    public String firstChannel;

    /**
     * 次要渠道
     */
    public String secondChannel;

    /**
     * 设备唯一标示
     */
    public String udid;

    /**
     * 操作系统版本
     */
    public String osVersion;

    /**
     * 用户代理
     */
    public String userAgent;

    public String toLogStr(String seperator) {
        StringBuilder builder = new StringBuilder();
        builder.append(firstChannel).append(seperator);
        builder.append(secondChannel).append(seperator);
        builder.append(udid).append(seperator);
        builder.append(osVersion).append(seperator);
        builder.append(userAgent).append(seperator);
        return builder.toString();
    }

	public String getFirstChannel() {
		return firstChannel;
	}
	public void setFirstChannel(String firstChannel) {
		this.firstChannel = firstChannel;
	}
	public String getSecondChannel() {
		return secondChannel;
	}
	public void setSecondChannel(String secondChannel) {
		this.secondChannel = secondChannel;
	}
	public String getUdid() {
		return udid;
	}
	public void setUdid(String udid) {
		this.udid = udid;
	}
	public String getOsVersion() {
		return osVersion;
	}
	public void setOsVersion(String osVersion) {
		this.osVersion = osVersion;
	}
	public String getUserAgent() {
		return userAgent;
	}
	public void setUserAgent(String userAgent) {
		this.userAgent = userAgent;
	}
}
